<?php
session_start(); 
 include_once 'data/usercheck.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>Food Online</title>
	<link rel="stylesheet" href="style.css" type="text/css" charset="utf-8" />
    <style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
    </style>
    <script type="text/javascript">
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
    </script>
</head>
<body onload="MM_preloadImages('images/pic_1.jpg')" >
<div id="wrapper">

  
<div id="logo">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="200" border="0" align="center">
    <tr>
      <td height="30"><FONT size="+6">
        <div align="center">STMS</div></td>
    </tr>
    <tr>
      <td><div align="center">STUDENT MANAGEMENT SYSTEM</div></td>
    </tr>
</table>
  <p>&nbsp;</p>
</div>
  <div id="nav">
      <div id="nav-left">
      <div id="nav-right">
        <ul>
         
          <li><a href="Aboutus.php">About us</a></li>
          <li><a href="viewhome.php">Student</a></li>
          <li><a href="Adminhome.php">Admin</a></li>
		  <li><a href="http://studentmanagements.blogspot.com/">Contact</a></li>
        </ul>
      </div>
      
    <script>

	function showhide(id){ 
		if (document.getElementById){ 
			obj = document.getElementById(id); 
			
			if (obj.style.display == "none"){ 
				obj.style.display = ""; 
			} else { 
				obj.style.display = "none"; 
			} 
		} 
	} 
</script>
        <ul>
          <li><a href="HometoAdmin.php">Home</a></li>
          <li class="orange"><div align="left"><a href="http://localhost/stms/pages/data/logout.php">Logout-<?php include_once 'data/databaseconnection.php';session_start();echo $_SESSION['username'];?></a></div></li>
        </ul>
      </div>
  </div>
  <div id="body" >
    <div align="center">
    <table width="741" border="0">
        <tr>
          <td width="261" rowspan="3"><p>&nbsp;</p>
            <table width="245" height="215" border="0" >
              <tr>
                <td width="239" height="70"   background="images/tri.jpg"><a href="showadmin.php"><font size="+1">Update files</font></a></td>
              </tr>
              <tr>
                <td height="69" background="images/tri.jpg"><a href="viewalldet.php"><font  size="+1">ViewAll </font></a></td>
              </tr>
              <tr>
                <td height="68" background="images/tri.jpg"><a href="javascript:showhide('abc');"><font  size="+1">About</font></a></td>
              </tr>
            </table>
            <p>&nbsp;</p>
          <div align="left"></div>
            <div align="left"></div>
          <p>&nbsp;</p></td>
          <td width="151" height="24">&nbsp;</td>
          <td width="315"><div align="right"><a href="changepass.php"><font  size="+1">changepassword</font></a></div></td>
        </tr>
        <tr>
		 <p>
	  <?php
        if (isset($_GET['err'])) {
            $err = $_GET['err'];
            echo '<span  style="color:  #F4C389"  >'.$err.'</span>';
        }
        ?>
	  
    </p>
          <td height="68" colspan="2"><form action="data/readfile.php" method="post"
enctype="multipart/form-data">
            <p>
            <label for="file">
              </div>
            </label>
            <div align="center">Filename:
              <input type="file" name="file" id="file" />
              <br />
              <input type="submit" name="submit" value="Submit" />
            </div>
          </form></td>
        </tr>
        <tr>
		
          <td height="46" colspan="2"><div id="abc"  >
          <table width="273" border="1" >
            <tr>
              <td><p>sdfsdsfsfsfvs</p>
              <p>sgvsdgsgbsg</p>
              <p>dfndhdhndfhbdhd</p></td>
            </tr>
          </table></td>
        </tr>
      </table></div>
    </div>
    <div class="clear">&nbsp;
   
	<form id="form2" method="post" action="">
      <p></p>
    </form>
<p></p>
    </p>

  </div>
      <div id="footer">
        <ul>
          <li><a href="HometoAdmin.php">Home</a> | </li>
          <li><a href="Aboutus.php">About Us</a> | </li>
          <li><a href="">Menu</a> | </li>
          <li><a href="http://studentmanagements.blogspot.com/">Contact</a></li>
        </ul>
        <p>copyright &copy; stms company</p>
      </div>
    </div>
</div>
</body>
</html>
